package com.k2data.k2app.rest;

import com.k2data.k2app.rest.domain.RectObject;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by clb on 17-6-15.
 */
@Component
@FeignClient(value = "K2ALPHA-MSG-V1", fallback = MsgClientFallback.class)
public interface MsgClient {

	@RequestMapping(method = RequestMethod.POST, value = "/mail/template/send")
	RectObject sendMail (@RequestBody Object map);

	@RequestMapping(method = RequestMethod.POST, value = "/sms/send")
	RectObject sendSingleSms (@RequestBody Object map);

}
